# GnuMake lua

CC  = dmc
LIBR  = lib
CFLAG =  -I. -c -DLUA_WIN -DWITH_POPEN -ff

LUA_LIB		= lua.lib
ALL_OBJ		= $(patsubst %.c, %.obj, $(wildcard *.c))

ALL: $(LUA_LIB)

%.obj: %.c
	$(CC) $(CFLAG)  $^ -o$@

$(LUA_LIB) : $(ALL_OBJ)
	$(LIBR) -c $@ $^

clean:
	del /S /Q *.obj *.def *.map
